package com.tonyodev.fetch2core;

/**
 * 接口
 *
 * @param <T> 类型
 * @since 2021-05-20
 */
@FunctionalInterface
public interface FetchObserver<T> {
    /**
     * Method called when the data on the observing object has changed.
     *
     * @param data the data.
     * @param reason the reason why the onChanged method was called.
     */
    void onChanged(T data, Reason reason);
}
